<?php

namespace Database\Seeders;

use App\Models\User;
use App\Models\GoldProduct;
use Illuminate\Database\Seeder;
use App\Services\MakeGoldRecord\MakeGoldRecord;

class FakeGoldRecord extends Seeder
{
	public function run()
	{
		$user = User::find(22653);
		$goldProduct = GoldProduct::find(36386);
		
		$record = app(MakeGoldRecord::class, [
			'user' => $user,
			'unpaidCacheId' => $goldProduct
		])->make();
		
		if ($record) {
			cashier('goldcoin')->payStorm($record);
		}
	}
}
